package com.yg.ssm.index.dao;

import com.yg.ssm.index.model.MenuTreeModel;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by Administrator on 2016/8/29.
 */
public interface MenuTreeDao {
    @Select("SELECT \n" +
            "  MID,\n" +
            "  menu_code,\n" +
            "  menu_name,\n" +
            "  pmid,\n" +
            "  menu_url,\n" +
            "  pmenu_name \n" +
            "FROM\n" +
            "  yg_menu WHERE pmid=#{pid}")
    public List<MenuTreeModel> queryMenu(String pid);
}
